GtkPopover: new approach to menu model binding
authorRyan Lortie <desrt@desrt.ca>
Mon, 28 Apr 2014 15:55:52 +0000 (17:55 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 28 Apr 2014 18:14:42 +0000 (14:14 -0400)
commit5137e491dc56b4f66b2330d3a33e70a57913c0c3
tree664311134bf2726d449201c7339564b7dcf92efb
parentd930716daf0b04d01832658b21ba96898686c70e
GtkPopover: new approach to menu model binding

Instead of using GtkMenuTracker to flatten the sections into a single
linear menu, handle the sections ourselves by nesting boxes.

Each section gets an inner and outer box.  The inner box numbers its
children in the way that the tracker instructs.  The outer box
containes the inner box and the separator, if appropriate.

Having the two separate boxes will allow us to change the orientation of
the inner box if we want to pack widgets horizontally within a section.
gtk/Makefile.am
gtk/gtkmenusectionbox.c [new file with mode: 0644]
gtk/gtkmenusectionbox.h [new file with mode: 0644]
gtk/gtkpopover.c